package jia.core.characters;

import jia.core.state.CombatState;

import java.util.Comparator;

public class CombatComparator implements Comparator{
	public int compare(Object o1, Object o2){
		return compare((CombatState) o1, (CombatState) o2);
	}

	public int compare(CombatState r1, CombatState r2){
		int diff = r1.getInitiative() - r2.getInitiative();
		return diff;
	}
}